package main

import (
	_ "app.com/api.v1/api"
	"app.com/api.v1/config"
	"app.com/api.v1/router"
	"app.com/common.v1/middleware"
	srv "app.com/common.v1/server"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.Use(middleware.CheckAuth)
	router.InitRouter(r)
	srv.Run(r, config.AppConf.ServerConf.Addr)
}
